<?php
namespace app\index\model;

use think\Model;

class Blog extends Model
{
	public function category()
    {

        return $this->hasOne('Category','cid','cid');
    }

    public function tag()
    {

        return $this->hasOne('Tag','tid','tid');
    }
}

?>